package com.example.interview.no0201;

import com.example.interview.no0201.solution.SetSolutionImpl;

/**
 * @Description 解答测试-一次编辑
 * @ClassName SolutionTest
 * @Author Administrator
 * @Date 2020/5/16 12:54
 * @Version 1.0.0
 */
public class SolutionTest {

    static String first = "code";
    static String second = "code";

    public static void main(String[] args) {

        ListNode l1 = new ListNode(2);
        ListNode l1_24 = new ListNode(4);
        ListNode l1_243 = new ListNode(3);
        l1_24.next = l1_243;
        l1.next = l1_24;

        System.out.println("入参: l1: " + ListNode.toStr(l1));

        Solution solution = new SetSolutionImpl();
        ListNode result = solution.removeDuplicateNodes(l1);

        System.out.println(ListNode.toStr(result));
    }
}
